package yanchun.vip.base.reflection.model;

import lombok.Data;

/**
 * @author SuYanchun
 * @since 2025-02-11 18:31
 */
@Data
public class User {

    private String name;

    private Integer age;

    public User(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public User() {

    }

    private User(String name){
        this.name = name;
    }

    private Long sayHello(String name){
        System.out.println("Hello" + name + "，My name is " + this.name + "!");
        return 1L;
    }

    public String selfIntroduction(){
        return "My name is " + this.name + ", I am " + this.age + " years old";
    }
}
